.class Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;
.super Ljava/lang/Object;
.source "CardViewPagerFragment.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    .prologue
    .line 132
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "error"    # Lretrofit/RetrofitError;

    .prologue
    .line 170
    const-string v0, "ListApps"

    invoke-static {v0, p1}, Lcom/zuiapps/suite/utils/log/LogUtil;->e(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 171
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # operator-- for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentRequestPage:I
    invoke-static {v0}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$410(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)I

    .line 172
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->mPullToRefreshViewPager:Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;->onRefreshComplete()V

    .line 173
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    const/4 v1, 0x0

    # setter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->mIsRequesting:Z
    invoke-static {v0, v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$702(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;Z)Z

    .line 174
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 132
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 8
    .param p1, "jsonObject"    # Lorg/json/JSONObject;
    .param p2, "response"    # Lretrofit/client/Response;

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 136
    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->mPullToRefreshViewPager:Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;

    move-result-object v3

    invoke-virtual {v3}, Lcom/handmark/pulltorefresh/extras/viewpager/PullToRefreshViewPager;->onRefreshComplete()V

    .line 138
    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    const-string v4, "has_next"

    invoke-virtual {p1, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v4

    if-eqz v4, :cond_16

    move v1, v2

    :cond_16
    # setter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->mHasNext:Z
    invoke-static {v3, v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$202(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;Z)Z

    .line 141
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->getModuleType()Lcom/brixd/niceapp/constant/AppConstant$ModuleType;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$300(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    move-result-object v1

    invoke-static {p1, v1}, Lcom/brixd/niceapp/model/AppModel;->parseAppModels(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Ljava/util/ArrayList;

    move-result-object v0

    .line 142
    .local v0, "appModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AppModel;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentRequestPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$400(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)I

    move-result v1

    if-ne v1, v2, :cond_3a

    .line 143
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_3a

    .line 144
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->DAILY_NICE_APP:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_4a

    .line 145
    invoke-static {p1}, Lcom/brixd/niceapp/service/AppService;->cacheAppModelsJsonData(Lorg/json/JSONObject;)V

    .line 162
    :cond_3a
    :goto_3a
    const-class v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    monitor-enter v2

    .line 163
    :try_start_3d
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->updateAppAdapter(Ljava/util/List;)V
    invoke-static {v1, v0}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$600(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;Ljava/util/List;)V

    .line 164
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    const/4 v3, 0x0

    # setter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->mIsRequesting:Z
    invoke-static {v1, v3}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$702(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;Z)Z

    .line 165
    monitor-exit v2
    :try_end_49
    .catchall {:try_start_3d .. :try_end_49} :catchall_9c

    .line 166
    return-void

    .line 146
    :cond_4a
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->TOPIC_APP:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_66

    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentTopicModel:Lcom/brixd/niceapp/model/TopicModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$500(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)Lcom/brixd/niceapp/model/TopicModel;

    move-result-object v1

    if-eqz v1, :cond_66

    .line 147
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$2;->this$0:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentTopicModel:Lcom/brixd/niceapp/model/TopicModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->access$500(Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;)Lcom/brixd/niceapp/model/TopicModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/TopicModel;->getId()I

    move-result v1

    invoke-static {p1, v1}, Lcom/brixd/niceapp/service/AppService;->cacheTopicAppModelsJsonData(Lorg/json/JSONObject;I)V

    goto :goto_3a

    .line 148
    :cond_66
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->USER_FAVORITES:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-eq v1, v2, :cond_3a

    .line 150
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GOODS:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_78

    .line 151
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GOODS:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    invoke-static {p1, v1}, Lcom/brixd/niceapp/service/AppService;->cacheCommonJsonData(Lorg/json/JSONObject;Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;)V

    goto :goto_3a

    .line 152
    :cond_78
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_TEST:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_84

    .line 153
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_TEST:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    invoke-static {p1, v1}, Lcom/brixd/niceapp/service/AppService;->cacheCommonJsonData(Lorg/json/JSONObject;Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;)V

    goto :goto_3a

    .line 154
    :cond_84
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GAME:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_90

    .line 155
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GAME:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    invoke-static {p1, v1}, Lcom/brixd/niceapp/service/AppService;->cacheCommonJsonData(Lorg/json/JSONObject;Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;)V

    goto :goto_3a

    .line 156
    :cond_90
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->APP_PROM:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v1, v2, :cond_3a

    .line 157
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->APP_PROM:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    invoke-static {p1, v1}, Lcom/brixd/niceapp/service/AppService;->cacheCommonJsonData(Lorg/json/JSONObject;Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;)V

    goto :goto_3a

    .line 165
    :catchall_9c
    move-exception v1

    :try_start_9d
    monitor-exit v2
    :try_end_9e
    .catchall {:try_start_9d .. :try_end_9e} :catchall_9c

    throw v1
.end method
